import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Triangle {
    public String classify(int a, int b, int c) {
        // 排序并创建列表
        List<Integer> edge = Stream.of(a, b, c).sorted().collect(Collectors.toList());
        int max_v = Collections.max(edge), min_v = Collections.min(edge);
        if (min_v < 1 || max_v > 100) {
            return "输入错误";
        }
        if (edge.get(0) + edge.get(1) <= edge.get(2)) {
            return "非三角形";
        } else if (max_v == min_v) {
            return "等边三角形";
        } else if (edge.get(1) != max_v && edge.get(1) != min_v) {
            return "不等边三角形";
        } else {
            return "等腰三角形";
        }
    }
}
